<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //let people1 = {
          //  age:19,
          //  name:'jake',
         //   sex:'男'
        //}
        //let people2 = {
           // age:19,
         //   name:'make',
          //  sex:'女'
        //}
        //let people3 = {
            //age:19,
            //name:'milk',
          //  sex:'男'
        //}

        class myclass{
            constructor(age,name,sex){
                this.age=age
                this.name=name
                this.sex=sex

            }
        }
        let x = new myclass('小猪',15,'男')
        console.log(x)
        let y = new myclass('小马',16,'男')
        console.log(y)
        let z = new myclass('小狗',18,'男')
        console.log(z)
    </script>
</body>
</html>